//
//  myBillSuperVC.m
//  jiaKaoZhuShou
//
//  Created by 金艺社 on 2018/10/11.
//  Copyright © 2018年 金艺社. All rights reserved.
//

#import "myBillSuperVC.h"
#import "myBill.h"

@implementation myBillSuperVC
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"我的账单";
    // 添加所有子控制器
    [self setUpAllViewController];
    // 推荐方式
    [self setUpTitleEffect:^(UIColor *__autoreleasing *titleScrollViewColor, UIColor *__autoreleasing *norColor, UIColor *__autoreleasing *selColor, UIFont *__autoreleasing *titleFont, CGFloat *titleHeight, CGFloat *titleWidth) {
        // 设置标题字体
        *titleFont = [UIFont systemFontOfSize:15];
        *titleHeight = 35;
        *selColor = [UIColor custom_color:@"#A91E23"];
    }];
    // 推荐方式（设置下标）
    [self setUpUnderLineEffect:^(BOOL *isUnderLineDelayScroll, CGFloat *underLineH, UIColor *__autoreleasing *underLineColor, BOOL *isUnderLineEqualTitleWidth) {
        // 标题填充模式
        *underLineColor = [UIColor custom_color:@"#A91E23"];
    }];
    __weak myBillSuperVC *ws = self;
    [self setUpContentViewFrame:^(UIView *contentView) {
        contentView.frame = ws.view.frame;
    }];
    
    UIView *grayLine = [[UIView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, 1)];
    grayLine.backgroundColor = [UIColor groupTableViewBackgroundColor];
    [self.view addSubview:grayLine];
}
- (void)setUpAllViewController {
    myBill *VC1 = [myBill new];
    myBill *VC2 = [myBill new];
    
    VC1.title = @"已出账";
    VC2.title = @"未出账";

    [self addChildViewController:VC1];
    [self addChildViewController:VC2];
}
@end
